package com.lumlord.model.auto;

import java.io.Serializable;
import java.sql.Date;

import org.springframework.beans.factory.annotation.Autowired;

import com.lumlord.common.annotation.mybatis.SqlInjection;
import com.lumlord.common.annotation.mybatis.SqlInjectionColumn;
import com.lumlord.common.annotation.mybatis.SqlInjectionType;
import com.lumlord.common.annotation.pojo.PK;
import com.lumlord.common.annotation.pojo.Table;
import com.lumlord.common.domain.User;

public class TsysUser  implements Serializable {
    private Integer id;
    
    @Autowired
    private String username;

    private String password;
    
    private String nickname;
    
    @SqlInjection(types=SqlInjectionType.INSERT,column=SqlInjectionColumn.DATE)
    private Date time;
    @SqlInjection(types=SqlInjectionType.INSERT,defval="Hello word !")
    private String def;
    
    @SqlInjection(types= {SqlInjectionType.INSERT,SqlInjectionType.QUERY},column=SqlInjectionColumn.USER)
    private String userId;
    
    @SqlInjection(types= {SqlInjectionType.INSERT,SqlInjectionType.DEL,SqlInjectionType.QUERY,SqlInjectionType.UPDATE},defval="3000")
    private Integer uId;
    
    private Integer projectId;
    
    
    private static final long serialVersionUID = 1L;

    public TsysUser(Integer id, String username, String password, String nickname) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }

    public TsysUser() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id == null ? null : id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getDef() {
		return def;
	}

	public void setDef(String def) {
		this.def = def;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}
}